package com.bootdo.system.service;

import java.util.List;

import org.springframework.stereotype.Service;

import com.bootdo.system.domain.RoleDO;
import com.bootdo.system.domain.UserRoleDO;

@Service
public interface UserRoleService {

	UserRoleDO get(Long id);
   
	int getByUserId(Long id);
	
	List<RoleDO> list();

	int save(UserRoleDO role);

	int update(UserRoleDO role);

	int remove(Long id);

	List<UserRoleDO> list(Long userId);

	int batchremove(Long[] ids);
	
	int updateRoleId(UserRoleDO userRole);
}
